#!/usr/bin/python3
# coding: utf-8
# authon: ren

# 用户权限验证
from rest_framework.permissions import BasePermission


class VIPPermission(BasePermission):
    message = "必须是VIP才能访问"
    def has_permission(self,request,view):
        if request.user.user_type == 1:
            return True
        return False